package com.egao;

import com.egao.common.SslUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.PostConstruct;

/**
 * @author root
 */
@EnableScheduling
@EnableAsync
@MapperScan("com.egao.**.mapper")
@SpringBootApplication
public class EasyWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(EasyWebApplication.class, args);
    }

    /**
     * 忽略SSL验证
     * @throws Exception Exception
     */
    @PostConstruct
    public void run() throws Exception {
        SslUtils.ignoreSsl();
    }

}
